var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {
    res.render('index', { title: 'Express' });
});

router.get('/login', function (req, res, next) {
    res.render('login', { title: 'Express' });
});

router.get('/reg', function (req, res, next) {
    res.render('register', { title: 'Express' });
});

router.get('/search', function (req, res, next) {
    res.render('search', { 
        title: 'Express',
        lgc: "a123123"
     });
});

router.get('/demo', function (req, res, next) {
    res.render('demo', {
        title: 'Express',
        lgc: "a123123"
    });
});


module.exports = router;
